import { Component, OnInit } from '@angular/core';
import {treeNode, TreeNode} from "../side-nav-tree/tree-node";

@Component({
  selector: 'app-index',
  templateUrl: './index.component.html',
  styleUrls: ['./index.component.less']
})
export class IndexComponent implements OnInit {

  nodeList: TreeNode[] = []
  constructor() { }

  ngOnInit(): void {
    this.nodeList = treeNode.filter(value => !value.pid);
  }

}
